﻿using Architecture.Domain.Entity;
using System.ComponentModel.DataAnnotations;

namespace Architecture.Domain.RBAC
{
    public class UserInfo : Approval
    {
        [Key]
        public int UserId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string? UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string? UserPwd { get; set; } = "123456";
        /// <summary>
        /// 性别
        /// </summary>
        public string? UserSex { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string? UserAddress { get; set; }
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool IsDelete { get; set; } = false;
        /// <summary>
        /// 省份外键
        /// </summary>
        public int ProvinceId { get; set; }
        /// <summary>
        /// 市区外键
        /// </summary>
        public int UrbanId { get; set; }
        /// <summary>
        /// 县城外键
        /// </summary>
        public int CountyId { get; set; }
        /// <summary>
        /// 部门ID
        /// </summary>
        public int SectoriD { get; set; }
        public int Leading { get; set; }
    }
}